package com.linuxgt.laboratory;

import com.linuxgt.laboratory.service.IHuman;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuteng
 * @time Created on 2018-02-26 下午1:15.
 */
@RestController
public class HumanController {

    @Autowired
    private IHuman chineseMan;
    @Autowired
    private IHuman englishMan;

    @RequestMapping("/say")
    public void say() {
        this.chineseMan.whoami();
        this.englishMan.whoami();
    }
}
